package com.yunpuvip.sachet.modular.vo.rest.response;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ auther wushaohong
 * @ date  2019/8/13
 **/
@Data
public class PaymentRspVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;


    /**
     * 缴费单种类
     */
    private String payType;

    /**
     * 微信支付类型：1：公众号h5，2： 微信小程序
     */
    @TableField("pay_method")
    private Integer payMethod;


    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNo;





    /**
     * 实际支付金额
     */
    @TableField("order_pay_price")
    private BigDecimal orderPayPrice;

    /**
     * 支付金额
     */
    @TableField("amount")
    private BigDecimal amount;

    private BigDecimal giftAmount;

    /**
     * 过期时间
     */
    @TableField("expire_date")
    private Date expireDate;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;

    /**
     * 支付状态
     */
    @TableField("pay_status")
    private Integer payStatus;


    private String sign;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public static void main(String[] args) {
        String a="{\"langType\":0,\"cityName\":\"广州市\",\"secretKey\":\"0c286d7ccc061750\",\"key\":\"34d4b861944bd45e\",\"serviceId\":0,\"actionId\":0,\"actionName\":\"candao.orderOwn.postOrder\",\"content\":{\"storeId\":26279,\"menuId\":3018,\"type\":1,\"selfGetTime\":\"\",\"name\":\"丁聪\",\"phone\":\"13164118516\",\"payType\":1,\"isInvoice\":false,\"userNote\":\"\",\"pres\":{},\"peopleNum\":0,\"longitude\":113.242687,\"latitude\":23.097863,\"address\":\"广州餐道信息科技有限公司\",\"products\":[{\"pid\":31991,\"typeId\":8709,\"num\":1},{\"pid\":31994,\"typeId\":8709,\"num\":1}],\"randomCode\":\"b1054e17782e980e97b6b5050895c8f3\"},\"platformKey\":\"8d3ee1d4e6ed9956\",\"ip\":\"113.119.176.62\",\"timestamp\":1565682409673,\"operatorType\":0}";
        System.out.println(JSONUtil.toJsonPrettyStr(JSONUtil.parseObj(a)));
    }



}
